package com.example.peachgrove.controller.admin.index;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;

@CrossOrigin
@ResponseBody
@RestController
@RequestMapping("/back")
@Api(tags = "数据统计")
public class IndexController {
    @ApiOperation("查询首页所有数据")
    @GetMapping("/getIndexInfo")
    public HashMap getAllInfo(){
        HashMap hello = new HashMap<String,Object>();
        hello.put("msg","hello");
        return hello;
    }
}
